Integrand size = 19, antiderivative size = 130 \[ \int \frac {\left (a+b x^2\right )^3}{\left (c+d x^2\right )^3} \, dx=\frac {b^3 x}{d^3}-\frac {(b c-a d)^3 x}{4 c d^3 \left (c+d x^2\right )^2}+\frac {3 (b c-a d)^2 (3 b c+a d) x}{8 c^2 d^3 \left (c+d x^2\right )}-\frac {3 (b c-a d) \left (4 b^2 c^2+(b c+a d)^2\right ) \arctan \left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{8 c^{5/2} d^{7/2}} \]
b^3*x/d^3-1/4*(-a*d+b*c)^3*x/c/d^3/(d*x^2+c)^2+3/8*(-a*d+b*c)^2*(a*d+3*b*c )*x/c^2/d^3/(d*x^2+c)-3/8*(-a*d+b*c)*(4*b^2*c^2+(a*d+b*c)^2)*arctan(x*d^(1 /2)/c^(1/2))/c^(5/2)/d^(7/2)
Time = 0.05 (sec) , antiderivative size = 141, normalized size of antiderivative = 1.08 \[ \int \frac {\left (a+b x^2\right )^3}{\left (c+d x^2\right )^3} \, dx=\frac {b^3 x}{d^3}-\frac {(b c-a d)^3 x}{4 c d^3 \left (c+d x^2\right )^2}+\frac {3 (b c-a d)^2 (3 b c+a d) x}{8 c^2 d^3 \left (c+d x^2\right )}-\frac {3 \left (5 b^3 c^3-3 a b^2 c^2 d-a^2 b c d^2-a^3 d^3\right ) \arctan \left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{8 c^{5/2} d^{7/2}} \]
(b^3*x)/d^3 - ((b*c - a*d)^3*x)/(4*c*d^3*(c + d*x^2)^2) + (3*(b*c - a*d)^2 *(3*b*c + a*d)*x)/(8*c^2*d^3*(c + d*x^2)) - (3*(5*b^3*c^3 - 3*a*b^2*c^2*d - a^2*b*c*d^2 - a^3*d^3)*ArcTan[(Sqrt[d]*x)/Sqrt[c]])/(8*c^(5/2)*d^(7/2))
Time = 0.35 (sec) , antiderivative size = 130, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {300, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\left (a+b x^2\right )^3}{\left (c+d x^2\right )^3} \, dx\) |
\(\Big \downarrow \) 300 |
\(\displaystyle \int \left (\frac {b^3}{d^3}-\frac {-a^3 d^3+3 b^2 d^2 x^4 (b c-a d)+3 b d x^2 (b c-a d) (a d+b c)+b^3 c^3}{d^3 \left (c+d x^2\right )^3}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {3 (b c-a d) \left ((a d+b c)^2+4 b^2 c^2\right ) \arctan \left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{8 c^{5/2} d^{7/2}}+\frac {3 x (b c-a d)^2 (a d+3 b c)}{8 c^2 d^3 \left (c+d x^2\right )}-\frac {x (b c-a d)^3}{4 c d^3 \left (c+d x^2\right )^2}+\frac {b^3 x}{d^3}\) |
(b^3*x)/d^3 - ((b*c - a*d)^3*x)/(4*c*d^3*(c + d*x^2)^2) + (3*(b*c - a*d)^2 *(3*b*c + a*d)*x)/(8*c^2*d^3*(c + d*x^2)) - (3*(b*c - a*d)*(4*b^2*c^2 + (b *c + a*d)^2)*ArcTan[(Sqrt[d]*x)/Sqrt[c]])/(8*c^(5/2)*d^(7/2))
3.1.19.3.1 Defintions of rubi rules used
Int[((a_) + (b_.)*(x_)^2)^(p_)*((c_) + (d_.)*(x_)^2)^(q_), x_Symbol] :> Int [PolynomialDivide[(a + b*x^2)^p, (c + d*x^2)^(-q), x], x] /; FreeQ[{a, b, c , d}, x] && NeQ[b*c - a*d, 0] && IGtQ[p, 0] && ILtQ[q, 0] && GeQ[p, -q]
Time = 2.29 (sec) , antiderivative size = 167, normalized size of antiderivative = 1.28
method | result | size |
default | \(\frac {b^{3} x}{d^{3}}+\frac {\frac {\frac {3 d \left (a^{3} d^{3}+a^{2} b c \,d^{2}-5 a \,b^{2} c^{2} d +3 b^{3} c^{3}\right ) x^{3}}{8 c^{2}}+\frac {\left (5 a^{3} d^{3}-3 a^{2} b c \,d^{2}-9 a \,b^{2} c^{2} d +7 b^{3} c^{3}\right ) x}{8 c}}{\left (d \,x^{2}+c \right )^{2}}+\frac {3 \left (a^{3} d^{3}+a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -5 b^{3} c^{3}\right ) \arctan \left (\frac {d x}{\sqrt {c d}}\right )}{8 c^{2} \sqrt {c d}}}{d^{3}}\) | \(167\) |
risch | \(\frac {b^{3} x}{d^{3}}+\frac {\frac {3 d \left (a^{3} d^{3}+a^{2} b c \,d^{2}-5 a \,b^{2} c^{2} d +3 b^{3} c^{3}\right ) x^{3}}{8 c^{2}}+\frac {\left (5 a^{3} d^{3}-3 a^{2} b c \,d^{2}-9 a \,b^{2} c^{2} d +7 b^{3} c^{3}\right ) x}{8 c}}{d^{3} \left (d \,x^{2}+c \right )^{2}}-\frac {3 \ln \left (d x +\sqrt {-c d}\right ) a^{3}}{16 \sqrt {-c d}\, c^{2}}-\frac {3 \ln \left (d x +\sqrt {-c d}\right ) a^{2} b}{16 d \sqrt {-c d}\, c}-\frac {9 \ln \left (d x +\sqrt {-c d}\right ) a \,b^{2}}{16 d^{2} \sqrt {-c d}}+\frac {15 c \ln \left (d x +\sqrt {-c d}\right ) b^{3}}{16 d^{3} \sqrt {-c d}}+\frac {3 \ln \left (-d x +\sqrt {-c d}\right ) a^{3}}{16 \sqrt {-c d}\, c^{2}}+\frac {3 \ln \left (-d x +\sqrt {-c d}\right ) a^{2} b}{16 d \sqrt {-c d}\, c}+\frac {9 \ln \left (-d x +\sqrt {-c d}\right ) a \,b^{2}}{16 d^{2} \sqrt {-c d}}-\frac {15 c \ln \left (-d x +\sqrt {-c d}\right ) b^{3}}{16 d^{3} \sqrt {-c d}}\) | \(327\) |
b^3*x/d^3+1/d^3*((3/8*d*(a^3*d^3+a^2*b*c*d^2-5*a*b^2*c^2*d+3*b^3*c^3)/c^2* x^3+1/8*(5*a^3*d^3-3*a^2*b*c*d^2-9*a*b^2*c^2*d+7*b^3*c^3)/c*x)/(d*x^2+c)^2 +3/8*(a^3*d^3+a^2*b*c*d^2+3*a*b^2*c^2*d-5*b^3*c^3)/c^2/(c*d)^(1/2)*arctan( d*x/(c*d)^(1/2)))
Leaf count of result is larger than twice the leaf count of optimal. 298 vs. \(2 (116) = 232\).
Time = 0.26 (sec) , antiderivative size = 618, normalized size of antiderivative = 4.75 \[ \int \frac {\left (a+b x^2\right )^3}{\left (c+d x^2\right )^3} \, dx=\left [\frac {16 \, b^{3} c^{3} d^{3} x^{5} + 2 \, {\left (25 \, b^{3} c^{4} d^{2} - 15 \, a b^{2} c^{3} d^{3} + 3 \, a^{2} b c^{2} d^{4} + 3 \, a^{3} c d^{5}\right )} x^{3} + 3 \, {\left (5 \, b^{3} c^{5} - 3 \, a b^{2} c^{4} d - a^{2} b c^{3} d^{2} - a^{3} c^{2} d^{3} + {\left (5 \, b^{3} c^{3} d^{2} - 3 \, a b^{2} c^{2} d^{3} - a^{2} b c d^{4} - a^{3} d^{5}\right )} x^{4} + 2 \, {\left (5 \, b^{3} c^{4} d - 3 \, a b^{2} c^{3} d^{2} - a^{2} b c^{2} d^{3} - a^{3} c d^{4}\right )} x^{2}\right )} \sqrt {-c d} \log \left (\frac {d x^{2} - 2 \, \sqrt {-c d} x - c}{d x^{2} + c}\right ) + 2 \, {\left (15 \, b^{3} c^{5} d - 9 \, a b^{2} c^{4} d^{2} - 3 \, a^{2} b c^{3} d^{3} + 5 \, a^{3} c^{2} d^{4}\right )} x}{16 \, {\left (c^{3} d^{6} x^{4} + 2 \, c^{4} d^{5} x^{2} + c^{5} d^{4}\right )}}, \frac {8 \, b^{3} c^{3} d^{3} x^{5} + {\left (25 \, b^{3} c^{4} d^{2} - 15 \, a b^{2} c^{3} d^{3} + 3 \, a^{2} b c^{2} d^{4} + 3 \, a^{3} c d^{5}\right )} x^{3} - 3 \, {\left (5 \, b^{3} c^{5} - 3 \, a b^{2} c^{4} d - a^{2} b c^{3} d^{2} - a^{3} c^{2} d^{3} + {\left (5 \, b^{3} c^{3} d^{2} - 3 \, a b^{2} c^{2} d^{3} - a^{2} b c d^{4} - a^{3} d^{5}\right )} x^{4} + 2 \, {\left (5 \, b^{3} c^{4} d - 3 \, a b^{2} c^{3} d^{2} - a^{2} b c^{2} d^{3} - a^{3} c d^{4}\right )} x^{2}\right )} \sqrt {c d} \arctan \left (\frac {\sqrt {c d} x}{c}\right ) + {\left (15 \, b^{3} c^{5} d - 9 \, a b^{2} c^{4} d^{2} - 3 \, a^{2} b c^{3} d^{3} + 5 \, a^{3} c^{2} d^{4}\right )} x}{8 \, {\left (c^{3} d^{6} x^{4} + 2 \, c^{4} d^{5} x^{2} + c^{5} d^{4}\right )}}\right ] \]
[1/16*(16*b^3*c^3*d^3*x^5 + 2*(25*b^3*c^4*d^2 - 15*a*b^2*c^3*d^3 + 3*a^2*b *c^2*d^4 + 3*a^3*c*d^5)*x^3 + 3*(5*b^3*c^5 - 3*a*b^2*c^4*d - a^2*b*c^3*d^2 - a^3*c^2*d^3 + (5*b^3*c^3*d^2 - 3*a*b^2*c^2*d^3 - a^2*b*c*d^4 - a^3*d^5) *x^4 + 2*(5*b^3*c^4*d - 3*a*b^2*c^3*d^2 - a^2*b*c^2*d^3 - a^3*c*d^4)*x^2)* sqrt(-c*d)*log((d*x^2 - 2*sqrt(-c*d)*x - c)/(d*x^2 + c)) + 2*(15*b^3*c^5*d - 9*a*b^2*c^4*d^2 - 3*a^2*b*c^3*d^3 + 5*a^3*c^2*d^4)*x)/(c^3*d^6*x^4 + 2* c^4*d^5*x^2 + c^5*d^4), 1/8*(8*b^3*c^3*d^3*x^5 + (25*b^3*c^4*d^2 - 15*a*b^ 2*c^3*d^3 + 3*a^2*b*c^2*d^4 + 3*a^3*c*d^5)*x^3 - 3*(5*b^3*c^5 - 3*a*b^2*c^ 4*d - a^2*b*c^3*d^2 - a^3*c^2*d^3 + (5*b^3*c^3*d^2 - 3*a*b^2*c^2*d^3 - a^2 *b*c*d^4 - a^3*d^5)*x^4 + 2*(5*b^3*c^4*d - 3*a*b^2*c^3*d^2 - a^2*b*c^2*d^3 - a^3*c*d^4)*x^2)*sqrt(c*d)*arctan(sqrt(c*d)*x/c) + (15*b^3*c^5*d - 9*a*b ^2*c^4*d^2 - 3*a^2*b*c^3*d^3 + 5*a^3*c^2*d^4)*x)/(c^3*d^6*x^4 + 2*c^4*d^5* x^2 + c^5*d^4)]
Leaf count of result is larger than twice the leaf count of optimal. 422 vs. \(2 (122) = 244\).
Time = 1.03 (sec) , antiderivative size = 422, normalized size of antiderivative = 3.25 \[ \int \frac {\left (a+b x^2\right )^3}{\left (c+d x^2\right )^3} \, dx=\frac {b^{3} x}{d^{3}} - \frac {3 \sqrt {- \frac {1}{c^{5} d^{7}}} \left (a d - b c\right ) \left (a^{2} d^{2} + 2 a b c d + 5 b^{2} c^{2}\right ) \log {\left (- \frac {3 c^{3} d^{3} \sqrt {- \frac {1}{c^{5} d^{7}}} \left (a d - b c\right ) \left (a^{2} d^{2} + 2 a b c d + 5 b^{2} c^{2}\right )}{3 a^{3} d^{3} + 3 a^{2} b c d^{2} + 9 a b^{2} c^{2} d - 15 b^{3} c^{3}} + x \right )}}{16} + \frac {3 \sqrt {- \frac {1}{c^{5} d^{7}}} \left (a d - b c\right ) \left (a^{2} d^{2} + 2 a b c d + 5 b^{2} c^{2}\right ) \log {\left (\frac {3 c^{3} d^{3} \sqrt {- \frac {1}{c^{5} d^{7}}} \left (a d - b c\right ) \left (a^{2} d^{2} + 2 a b c d + 5 b^{2} c^{2}\right )}{3 a^{3} d^{3} + 3 a^{2} b c d^{2} + 9 a b^{2} c^{2} d - 15 b^{3} c^{3}} + x \right )}}{16} + \frac {x^{3} \cdot \left (3 a^{3} d^{4} + 3 a^{2} b c d^{3} - 15 a b^{2} c^{2} d^{2} + 9 b^{3} c^{3} d\right ) + x \left (5 a^{3} c d^{3} - 3 a^{2} b c^{2} d^{2} - 9 a b^{2} c^{3} d + 7 b^{3} c^{4}\right )}{8 c^{4} d^{3} + 16 c^{3} d^{4} x^{2} + 8 c^{2} d^{5} x^{4}} \]
b**3*x/d**3 - 3*sqrt(-1/(c**5*d**7))*(a*d - b*c)*(a**2*d**2 + 2*a*b*c*d + 5*b**2*c**2)*log(-3*c**3*d**3*sqrt(-1/(c**5*d**7))*(a*d - b*c)*(a**2*d**2 + 2*a*b*c*d + 5*b**2*c**2)/(3*a**3*d**3 + 3*a**2*b*c*d**2 + 9*a*b**2*c**2* d - 15*b**3*c**3) + x)/16 + 3*sqrt(-1/(c**5*d**7))*(a*d - b*c)*(a**2*d**2 + 2*a*b*c*d + 5*b**2*c**2)*log(3*c**3*d**3*sqrt(-1/(c**5*d**7))*(a*d - b*c )*(a**2*d**2 + 2*a*b*c*d + 5*b**2*c**2)/(3*a**3*d**3 + 3*a**2*b*c*d**2 + 9 *a*b**2*c**2*d - 15*b**3*c**3) + x)/16 + (x**3*(3*a**3*d**4 + 3*a**2*b*c*d **3 - 15*a*b**2*c**2*d**2 + 9*b**3*c**3*d) + x*(5*a**3*c*d**3 - 3*a**2*b*c **2*d**2 - 9*a*b**2*c**3*d + 7*b**3*c**4))/(8*c**4*d**3 + 16*c**3*d**4*x** 2 + 8*c**2*d**5*x**4)
Time = 0.28 (sec) , antiderivative size = 187, normalized size of antiderivative = 1.44 \[ \int \frac {\left (a+b x^2\right )^3}{\left (c+d x^2\right )^3} \, dx=\frac {b^{3} x}{d^{3}} + \frac {3 \, {\left (3 \, b^{3} c^{3} d - 5 \, a b^{2} c^{2} d^{2} + a^{2} b c d^{3} + a^{3} d^{4}\right )} x^{3} + {\left (7 \, b^{3} c^{4} - 9 \, a b^{2} c^{3} d - 3 \, a^{2} b c^{2} d^{2} + 5 \, a^{3} c d^{3}\right )} x}{8 \, {\left (c^{2} d^{5} x^{4} + 2 \, c^{3} d^{4} x^{2} + c^{4} d^{3}\right )}} - \frac {3 \, {\left (5 \, b^{3} c^{3} - 3 \, a b^{2} c^{2} d - a^{2} b c d^{2} - a^{3} d^{3}\right )} \arctan \left (\frac {d x}{\sqrt {c d}}\right )}{8 \, \sqrt {c d} c^{2} d^{3}} \]
b^3*x/d^3 + 1/8*(3*(3*b^3*c^3*d - 5*a*b^2*c^2*d^2 + a^2*b*c*d^3 + a^3*d^4) *x^3 + (7*b^3*c^4 - 9*a*b^2*c^3*d - 3*a^2*b*c^2*d^2 + 5*a^3*c*d^3)*x)/(c^2 *d^5*x^4 + 2*c^3*d^4*x^2 + c^4*d^3) - 3/8*(5*b^3*c^3 - 3*a*b^2*c^2*d - a^2 *b*c*d^2 - a^3*d^3)*arctan(d*x/sqrt(c*d))/(sqrt(c*d)*c^2*d^3)
Time = 0.29 (sec) , antiderivative size = 180, normalized size of antiderivative = 1.38 \[ \int \frac {\left (a+b x^2\right )^3}{\left (c+d x^2\right )^3} \, dx=\frac {b^{3} x}{d^{3}} - \frac {3 \, {\left (5 \, b^{3} c^{3} - 3 \, a b^{2} c^{2} d - a^{2} b c d^{2} - a^{3} d^{3}\right )} \arctan \left (\frac {d x}{\sqrt {c d}}\right )}{8 \, \sqrt {c d} c^{2} d^{3}} + \frac {9 \, b^{3} c^{3} d x^{3} - 15 \, a b^{2} c^{2} d^{2} x^{3} + 3 \, a^{2} b c d^{3} x^{3} + 3 \, a^{3} d^{4} x^{3} + 7 \, b^{3} c^{4} x - 9 \, a b^{2} c^{3} d x - 3 \, a^{2} b c^{2} d^{2} x + 5 \, a^{3} c d^{3} x}{8 \, {\left (d x^{2} + c\right )}^{2} c^{2} d^{3}} \]
b^3*x/d^3 - 3/8*(5*b^3*c^3 - 3*a*b^2*c^2*d - a^2*b*c*d^2 - a^3*d^3)*arctan (d*x/sqrt(c*d))/(sqrt(c*d)*c^2*d^3) + 1/8*(9*b^3*c^3*d*x^3 - 15*a*b^2*c^2* d^2*x^3 + 3*a^2*b*c*d^3*x^3 + 3*a^3*d^4*x^3 + 7*b^3*c^4*x - 9*a*b^2*c^3*d* x - 3*a^2*b*c^2*d^2*x + 5*a^3*c*d^3*x)/((d*x^2 + c)^2*c^2*d^3)
Time = 0.18 (sec) , antiderivative size = 240, normalized size of antiderivative = 1.85 \[ \int \frac {\left (a+b x^2\right )^3}{\left (c+d x^2\right )^3} \, dx=\frac {\frac {x\,\left (5\,a^3\,d^3-3\,a^2\,b\,c\,d^2-9\,a\,b^2\,c^2\,d+7\,b^3\,c^3\right )}{8\,c}+\frac {3\,x^3\,\left (a^3\,d^4+a^2\,b\,c\,d^3-5\,a\,b^2\,c^2\,d^2+3\,b^3\,c^3\,d\right )}{8\,c^2}}{c^2\,d^3+2\,c\,d^4\,x^2+d^5\,x^4}+\frac {b^3\,x}{d^3}+\frac {3\,\mathrm {atan}\left (\frac {\sqrt {d}\,x\,\left (a\,d-b\,c\right )\,\left (a^2\,d^2+2\,a\,b\,c\,d+5\,b^2\,c^2\right )}{\sqrt {c}\,\left (a^3\,d^3+a^2\,b\,c\,d^2+3\,a\,b^2\,c^2\,d-5\,b^3\,c^3\right )}\right )\,\left (a\,d-b\,c\right )\,\left (a^2\,d^2+2\,a\,b\,c\,d+5\,b^2\,c^2\right )}{8\,c^{5/2}\,d^{7/2}} \]
((x*(5*a^3*d^3 + 7*b^3*c^3 - 9*a*b^2*c^2*d - 3*a^2*b*c*d^2))/(8*c) + (3*x^ 3*(a^3*d^4 + 3*b^3*c^3*d - 5*a*b^2*c^2*d^2 + a^2*b*c*d^3))/(8*c^2))/(c^2*d ^3 + d^5*x^4 + 2*c*d^4*x^2) + (b^3*x)/d^3 + (3*atan((d^(1/2)*x*(a*d - b*c) *(a^2*d^2 + 5*b^2*c^2 + 2*a*b*c*d))/(c^(1/2)*(a^3*d^3 - 5*b^3*c^3 + 3*a*b^ 2*c^2*d + a^2*b*c*d^2)))*(a*d - b*c)*(a^2*d^2 + 5*b^2*c^2 + 2*a*b*c*d))/(8 *c^(5/2)*d^(7/2))